/******************************************************************************
Copyright (c) 2009,Corparation Name Co.,Ltd. All rights reserved.
******************************************************************************/
/** @file
 * @brief function definitions of slist
 * Project Name:stdlibpatch
 * <br>
 * Module Name:slist
 * <br>
 * @author soulmachine@gmail.com
 * @date 2009/03/27
 * @version 0.1
 * @note none
 */
//#ifdef __cplusplus
//extern "C"{
//#endif


#include "private/stdlibpatch_internal.h"


void slist_construct(slist_t* slist, size_t elem_size)
{
        slist->size = 0;
        slist->capacity = 0;
        slist->elem_size = elem_size;
        slist->mem = NULL;

        slist->alloc = NULL;
        slist->dealloc = NULL;
        slist->copy = NULL;
        slist->cmp = NULL;
        slist->print = NULL;
}



//#ifdef __cplusplus
//}
//#endif
